package cn.yeziji.forum.converter;

import cn.yeziji.forum.dto.details.ForumUserOperaDetailDTO;
import cn.yeziji.forum.entity.ForumUserDetailEntity;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 用户操作文章对象转化器
 *
 * @author gzkemays
 * @since 2022/1/13 19:57
 */
@Mapper
public interface UserDetailConverter {
  UserDetailConverter INSTANCE = Mappers.getMapper(UserDetailConverter.class);

  /**
   * dto 值对象转化为源对象
   *
   * @param dto 值对象
   * @return entity
   */
  ForumUserDetailEntity dtoConvertToEntity(ForumUserOperaDetailDTO dto);
}
